<form id="pagerForm" action="jms/material" onsubmit="return navTabSearch(this)" method="post">
	<input type="hidden" name="pageNum" value="${(pager.pageNumber)!}" />
	<input type="hidden" name="numPerPage" value="${(pager.pageSize)!}" />
</form>
<div class="pageHeader">

	<form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="jms/material" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						<label>物料名称：</label>
						<input type="text" size="20" name="material.name" value="${(name)!}" />
					</td>


					<td>
						<label>供应商：</label>
						<input type="text" size="20" name="material.supplier" value="${(supplier)!}" />
					</td>


					<td>
						<div class="button"><div class="buttonContent"><button type="submit">查询</button></div></div>
					</td>
				</tr>


			</table>
		</div>
	</form>
</div>

<div class="pageContent" style="padding:0px">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="jms/material/add" width="450" height="300" target="dialog" mask="true"><span>录入</span></a></li>
			<li><a class="edit" href="jms/material/edit?id={sid_obj}" width="450" height="300" target="dialog" mask="true"><span>信息更新</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="jms/material/delete"  target="selectedTodo" rel="ids"  title="确认删除？"><span>删除</span></a></li>
			<li class="line">line</li>
			<li class=""><a class="icon" href="jms/material/export" target="dwzExport" targettype="navTab" title="实要导出这些记录吗?"><span>导出</span></a></li>
		</ul>
	</div>


	<table class="table" layoutH="139">
		<thead>
		<tr>
			<th width="60" align="left"><input type="checkbox" group="ids" class="checkboxCtrl"/>行号</th>
			<th width="80" align="center">目录</th>
			<th width="100" align="center">物料编号</th>
			<th width="80">物料名称</th>
			<th width="80">计量单位</th>
			<th width="180">规格型号</th>
			<th width="200" align="center">供应商</th>
			<th width="100" align="center">添加时间</th>
			<th width="160" align="center">备注</th>

		</tr>
		</thead>
		<tbody>
		<#list pager.list as m>
			<tr target="sid_obj" rel="${(m.id)!}" ondblclick="migr.baseMoudleDblick(this)">
				<td align="left">
					<input name="ids" type="checkbox" value="${(m.id)!}"/>
					${m_index + 1}
				</td>
				<td>${(m.catalogue)!} </td>
				<td>${(m.id)!}</td>
				<td>${(m.name)!}</td>
				<td>${(m.unit)!}</td>
				<td>${(m.model)!}</td>
				<td>${(m.supplier)!}</td>
				<td>${(m.createDate?string("yyyy-MM-dd"))!}</td>
				<td align="left">${(m.memo)!} </td>
			</tr>
		</#list>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <#if pager.pageSize == 20> selected</#if>>20</option>
				<option value="50" <#if pager.pageSize == 50> selected</#if>>50</option>
				<option value="100"<#if pager.pageSize == 100> selected</#if>>100</option>
				<option value="200"<#if pager.pageSize == 200> selected</#if>>200</option>
			</select>
			<span>条，共<font style="color:red;font-weight:bold;">${pager.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${pager.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${pager.totalRow!}" numPerPage="${pager.pageSize!}" pageNumShown="10" currentPage="${pager.pageNumber!}"></div>
	</div>


</div>

